<%@ page import="ar.org.sstuyv.IIUUOrdenamientoTerritorial" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'IIUUOrdenamientoTerritorial.label', default: 'IIUUOrdenamientoTerritorial')}" />
		<title><g:message code="default.create.label" args="[entityName]" /></title>
			
<%--<jq:resources />--%>
<%--<jqgrid:resources />--%>
<%----%>
<%--<g:javascript src="/sig/informeUrbanistico.js" />--%>
<%--<g:javascript src="/ajaxfileupload.js" />--%>
<%--<g:javascript src="sig/ui.comun.js" />--%>
<%--<g:javascript src="/sig/grillaNomenclaturaCompleta.js" />--%>
<%--<g:javascript src="/sig/toServer.js" />--%>
<%--<g:javascript src="/sig/grillaPersonal.js" />--%>

<r:require module='InformeUrbanistico' />
<g:javascript src="jquery-ui-1.10.3/js/jquery-1.9.1.js" />

<%--<jqgrid:resources />--%>

<script type='text/javascript'>

$(document).ready(function(){
	main = new sstuyv.main.ui.Grilla;
	pestanias();
	clickAddNomencla();
	clickGuardar(); 
	agregarSaltosTextarea(); 
  //$(".toServer").click(function(){toServer('infoDelTramite', 'saveAjax');}); 
});

<%--function pestanias() {--%>
<%--	var alltabs = $('div.tab');--%>
<%--	  var tabs = $('#tabs');--%>
<%--	  alltabs.first().show();--%>
<%--	  tabs.find('li:first').addClass('on');--%>
<%--	  tabs.find('a').on('click', function() {--%>
<%--	    alltabs.hide();--%>
<%--	    tabs.find('li').removeClass('on');--%>
<%--	    $(this).parent().toggleClass('on');--%>
<%--	    var tabref = $(this).attr('rel');--%>
<%--	    $(tabref).fadeIn(500);--%>
<%--	    this.blur();--%>
<%--	    return false;--%>
<%--	  });--%>
<%--}--%>

</script>
				
</head>

<body>
		<div id="informesUrbanisticos" class="content scaffold-create" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${ordenamientoTerritorialInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${ordenamientoTerritorialInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
<%--				<fieldset class="form">--%>
					<g:render template="form"/>
<%--				</fieldset>--%>
					<div class="divBotonPestania">
					<g:hiddenField name="id" id="id" value="${IIUUOrdenamientoTerritorialInstance.id}"/>
					<input type="hidden" readonly="readonly" id="clase" value="IIUUOrdenamientoTerritorial">
					<button id="botonGuardar" type="button">Guardar</button>
					</div>
		</div>
	</body>
</html>